package com.app.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("lm_user")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class UserModel {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private Integer status;
    private String userName;
    private String mobile;
    private String openid;
    private String faceUrl;
    private Timestamp createTime;
    private Timestamp updateTime;
    @TableField(exist = false)
    private List<ComplaintModel> complaintModel;
}
